package com.mg.jsfapp.singleton;


class Bar {
   private static class BarHolder {
       public static Bar bar = new Bar();
   }

   public static Bar getBar() {
       return BarHolder.bar;
   }
   
   private Bar() {
      if (BarHolder.bar != null) {
         throw new RuntimeException("instantiated");
      }
   }
}
